import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

//列表数据
export const columns: BasicColumn[] = [
  {
    title: '签约商户',
    align: "center",
    width: 120,
    dataIndex: 'businessId_dictText'
  },
  {
    title: '服务公司',
    align: "center",
    width: 120,
    dataIndex: 'companyId_dictText'
  },
  // {
  //   title: '订单编号',
  //   align: "center",
  //   dataIndex: 'orderNo',
  //   customRender:({text}) =>{
  //     return !text ? "-" : text;
  //   },
  // },
  {
    title: '姓名',
    align: "center",
    width: 210,
    dataIndex: 'name',
    slots: { customRender: 'infoSlot' },
  },
  {
    title: '附属信息',
    align: "center",
    width: 220,
    dataIndex: 'bankAccount',
    slots: { customRender: 'subsidiarySlot' },
  },
  {
    title: '提现金额',
    align: "center",
    width: 120,
    sorter: true,
    dataIndex: 'amount',
    slots: { customRender: 'moneySlot' },
  },
  {
    title: '发放状态',
    align: "center",
    width: 100,
    dataIndex: 'status',
    slots: { customRender: 'statusSlot' },
  },
  {
    title: '银行反馈信息',
    align: "center",
    width: 140,
    dataIndex: 'bankFeedbackMessage',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '发放时间',
    align: "center",
    width: 120,
    sorter: true,
    dataIndex: 'createTime'
  },
  {
    title: '银行反馈时间',
    align: "center",
    width: 120,
    sorter: true,
    dataIndex: 'bankFeedbackTime',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
];
